package com.jiyun.dao;

import com.jiyun.pojo.goods.Role;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.Set;

public interface RoleMapper extends Mapper<Role> {

    @Select("select * from tb_admin_role t,tb_role r where t.role_id=r.id and t.admin_id=#{adminId}")
    Set<Role> findByAdminId(Integer adminId);
}
